<!-- Begin: Page Header -->
<div id="header">
    <div class="top-line">
        <div class="center-block">
            <a class="facebook" href="http://facebook.com/goiautos" target="_blank">Curta nossa página no facebook</a>
            <a class="twitter" href="http://twitter.com/goiautos" target="_blank">Siga-nos no Twitter</a>
            <ul class="contact">
                <?
                if (Util::is_logged()):
                    $session = new Session('account');
                    if ($session->type == 'F')
                        $logged = DbGet::customer($session->id)->name;
                    else
                        $logged = DbGet::enterprise($session->id)->fancyname;
                    ?>
                    <li class="logout">
                        <span><?= $logged ?></span>
                        <a href="<?= __BASE_URI__ ?>logout">(Sair)</a>
                    </li>
                <? else: ?>
                    <li class="login">
                        <a href="javascript:;">Login</a>
                    </li>
                    <form id="login">
                        <h1>Acesso Clientes</h1>
                        <label>E-mail:</label>
                        <input class="input required" type="text" name="email" title="E-mail">
                        <label>Senha:</label>
                        <input class="input required" type="password" name="password" title="Senha">
                        <input class="submit" type="submit">
                        <input type="hidden" name="login" value="access">
                        <div class="persistent">
                            <input type="checkbox" name="persistent" value="1">
                            <span>Mantenha-me conectado</span>
                        </div>
                        <a style="display: none" href="<?= __BASE_URI__ ?>">Esqueci a senha</a>
                    </form>
                <? endif ?>
                <li class="phone">64 3050-5922</li>
                <li class="email">contato@goiautos.com.br</li>
            </ul>
        </div>
    </div>
    <div class="center-block">
        <div class="logo-bar">
            <a class="logotipo" href="<?= __BASE_URI__ ?>">
                <img src="<?= _IMG_ ?>logotipo.png" alt="Logotipo" />
            </a>
            <?
            if (isset(LayoutPage::$banners['top'])):
                $banner = LayoutPage::$banners['top'];
                if ($banner == null):
                    ?>
                    <a class="banner" href="javascript:;" target="Banner">
                        <img src="<?= _BNN_IMG_ ?>top.jpg" alt="Banner" />
                    </a>
                    <?
                else:
                    if (strtolower(pathinfo($banner->filepicture, PATHINFO_EXTENSION)) == 'jpg'):
                        if (!$banner->id_enterprise):
                            ?>
                            <a class="banner" href="<?= $banner->href ?>" target="<?= $banner->target ?>">
                            <? else: ?>
                                <a class="banner" href="<?= __BASE_URI__ . 'revenda/' . urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))) . '/' . $banner->e_id ?>">
                                <? endif ?>
                                <img src="<?= _BNN_IMG_ . $banner->filepicture ?>" alt="Banner" />
                            </a>
                        <? else: ?>
                            <object class="banner" width="752" height="92">
                                <param name="src" value="<?= _BNN_IMG_ . $banner->filepicture ?>">
                                <param name="wmode" value="opaque">
                                <embed src="<?= _BNN_IMG_ . $banner->filepicture ?>" width="752" height="92"></embed>
                            </object>
                            <? if (!$banner->id_enterprise): ?>
                                <a class="flash" href="<?= $banner->href ?>" target="<?= $banner->target ?>"></a>
                            <? else: ?>
                                <a class="flash" href="<?= __BASE_URI__ . 'revenda/' . urlencode(strtolower(str_replace(' ', '-', $banner->fancyname))) . '/' . $banner->e_id ?>"></a>
                            <?
                            endif;
                        endif;
                    endif;
                endif
                ?>
        </div>
        <ul class="main-menu">
            <li class="home"><a href="<?= __BASE_URI__ ?>"><span>Início</span></a></li>
            <li><a href="<?= __BASE_URI__ ?>quem-somos">Quem Somos</a></li>
            <li><a href="<?= __BASE_URI__ ?>cidades-atendidas">Cidades Atendidas</a></li>
            <li><a href="<?= __BASE_URI__ ?>login">Central do Cliente</a></li>
            <li><a href="<?= __BASE_URI__ ?>revendas">Revendas</a></li>
            <li><a href="<?= __BASE_URI__ ?>produtos">Produtos</a></li>
            <li><a href="<?= __BASE_URI__ ?>anuncie">Anuncie</a></li>
            <li class="last"><a href="<?= __BASE_URI__ ?>contato">Contato</a></li>
        </ul>
    </div>
</div> <!-- End -->

<!-- Begin: Page Wrapper -->
<div id="wrapper">
